package com.lcxw.hxzbadmin.service.baseservice;
import	java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbadmin.dao.adminmapper.AnchorLevelMapper;
import com.lcxw.hxzbadmin.entity.pojo.AnchorLevel;

@Component
public class AnchorService {

    @Resource
    AnchorLevelMapper anchorLevelMapper;

    public int deleteByPrimaryKey(int levelId)throws Exception{
        return anchorLevelMapper.deleteByPrimaryKey(levelId);
    }

    public int insert(AnchorLevel anchorLevel)throws Exception {
      return anchorLevelMapper.insert(anchorLevel);
    }

    public AnchorLevel selectByPrimaryKey (int levelId)throws Exception {
      return anchorLevelMapper.selectByPrimaryKey(levelId);
    }

    public int updateByPrimaryKey(AnchorLevel anchorLevel)throws Exception {
      return anchorLevelMapper.updateByPrimaryKey(anchorLevel);
    }

    public List <AnchorLevel> selectAll() throws Exception {
        return anchorLevelMapper.selectAll();
    }
}
